package com.yellowpage.bigdata.action;
  
import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.yellowpage.white.common.Configuration;
import com.yellowpage.white.common.Constants;
import com.yellowpage.white.struts.BaseAction;
import com.yellowpage.white.struts.Module;
import com.yellowpage.white.struts.OperationType;
import com.yellowpage.white.util.Util4Java;

import com.yellowpage.bigdata.data.TmApponoffContinuousActiveWeek;
import com.yellowpage.bigdata.service.TmApponoffContinuousActiveWeekService;

public class TmApponoffContinuousActiveWeekAction extends BaseAction {

    public String RESULT_QUERY = "query";
	private List<TmApponoffContinuousActiveWeek> tmApponoffContinuousActiveWeekList = new ArrayList<TmApponoffContinuousActiveWeek>();
	private List<Map> resultList = new ArrayList<Map>();
	
	private TmApponoffContinuousActiveWeek tmApponoffContinuousActiveWeek;
	private TmApponoffContinuousActiveWeekService tmApponoffContinuousActiveWeekService;
	
	private String selectedId;	
	private String[] selectedIds;	
	private String message;
	
		private String query_note;
		private String query_createTime;
		private String query_isFive;
		private String query_createUser;
		private String query_weekDate;
		private String query_dayId_end;
		private String query_isFour;
		private String query_imei;
		private String query_isTwo;
		private String query_isThree;
		private String query_tmApponoffContinuousActiveWeekDeailId;
		
	public void prepare() {
		super.prepare();
	
		if (this.selectedId != null && !this.selectedId.equals("")) {
			this.tmApponoffContinuousActiveWeek = tmApponoffContinuousActiveWeekService.getTmApponoffContinuousActiveWeek(Long.parseLong(selectedId));
		}
	}
	
	public String queryByPage() {		
		initPageRender();
		
		Map queryMap = new HashMap();	
			
	    	    queryMap.put("weekDate", query_weekDate);
	    	    queryMap.put("weekDateEnd", query_dayId_end);
	    	    
		resultList = tmApponoffContinuousActiveWeekService.queryTmApponoffContinuousActiveWeekByPage(queryMap, pageRender);
		
		setPageRenderToRequest();

		return "query";
	}
	
	
	

	/**
	 * getters and setters
	 * 
	 * @return
	 */
	 public void setTmApponoffContinuousActiveWeek(TmApponoffContinuousActiveWeek tmApponoffContinuousActiveWeek) {
		this.tmApponoffContinuousActiveWeek = tmApponoffContinuousActiveWeek;
	}
	
	public TmApponoffContinuousActiveWeek getTmApponoffContinuousActiveWeek() {
		return tmApponoffContinuousActiveWeek;
	}
	 
	 
	 public void setTmApponoffContinuousActiveWeekService(TmApponoffContinuousActiveWeekService tmApponoffContinuousActiveWeekService) {
		this.tmApponoffContinuousActiveWeekService = tmApponoffContinuousActiveWeekService;
	}
	
	public List<TmApponoffContinuousActiveWeek> getTmApponoffContinuousActiveWeekList() {
		return tmApponoffContinuousActiveWeekList;
	}

	public void setTmApponoffContinuousActiveWeekList(List<TmApponoffContinuousActiveWeek> tmApponoffContinuousActiveWeekList) {
		this.tmApponoffContinuousActiveWeekList = tmApponoffContinuousActiveWeekList;
	}
	
	public String getSelectedId() {
		return selectedId;
	}

	public void setSelectedId(String selectedId) {
		this.selectedId = selectedId;
	}

	public String[] getSelectedIds() {
		return selectedIds;
	}

	public void setSelectedIds(String[] selectedIds) {
		this.selectedIds = selectedIds;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	
	public List<Map> getResultList() {
		return resultList;
	}

	public void setResultList(List<Map> resultList) {
		this.resultList = resultList;
	}
	
	    public String getQuery_note() {
        return this.query_note;
    }
    
    public void setQuery_note(String note){
        this.query_note = note;
    }    

        public String getQuery_createTime() {
        return this.query_createTime;
    }
    
    public void setQuery_createTime(String createTime){
        this.query_createTime = createTime;
    }    

        public String getQuery_isFive() {
        return this.query_isFive;
    }
    
    public void setQuery_isFive(String isFive){
        this.query_isFive = isFive;
    }    

        public String getQuery_createUser() {
        return this.query_createUser;
    }
    
    public void setQuery_createUser(String createUser){
        this.query_createUser = createUser;
    }    

        public String getQuery_weekDate() {
        return this.query_weekDate;
    }
    
    public void setQuery_weekDate(String weekDate){
        this.query_weekDate = weekDate;
    }    

        public String getQuery_isFour() {
        return this.query_isFour;
    }
    
    public void setQuery_isFour(String isFour){
        this.query_isFour = isFour;
    }    

        public String getQuery_imei() {
        return this.query_imei;
    }
    
    public void setQuery_imei(String imei){
        this.query_imei = imei;
    }    

        public String getQuery_isTwo() {
        return this.query_isTwo;
    }
    
    public void setQuery_isTwo(String isTwo){
        this.query_isTwo = isTwo;
    }    

        public String getQuery_isThree() {
        return this.query_isThree;
    }
    
    public void setQuery_isThree(String isThree){
        this.query_isThree = isThree;
    }    

        public String getQuery_tmApponoffContinuousActiveWeekDeailId() {
        return this.query_tmApponoffContinuousActiveWeekDeailId;
    }
    
    public void setQuery_tmApponoffContinuousActiveWeekDeailId(String tmApponoffContinuousActiveWeekDeailId){
        this.query_tmApponoffContinuousActiveWeekDeailId = tmApponoffContinuousActiveWeekDeailId;
    }    

	public String getQuery_dayId_end() {
		return query_dayId_end;
	}
	
	public void setQuery_dayId_end(String query_dayId_end) {
		this.query_dayId_end = query_dayId_end;
	}

	
}
